home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global mnv, ppl, foes, advance, pwr, fxpath, bullets
- if getAt(mnv, 1) > 1 then
- if (the keyCode > 124) and (the memberNum of sprite getAt(ppl, 1) < 46) then
- set the memberNum of sprite getAt(ppl, 1) to member(the memberNum of sprite getAt(ppl, 1) + 1, 2)
- if the keyCode = 126 then
- set the locV of sprite getAt(ppl, 1) to the locV of sprite getAt(ppl, 1) - 17
- else
- set the locV of sprite getAt(ppl, 1) to the locV of sprite getAt(ppl, 1) + 17
- end if
- setAt(mnv, 1, getAt(mnv, 1) - 1)
- else
- if (the keyCode > 122) and (the memberNum of sprite getAt(ppl, 1) < 46) then
- set the memberNum of sprite getAt(ppl, 1) to member(the memberNum of sprite getAt(ppl, 1) + 1, 2)
- if sprite(getAt(ppl, 1)).flipH = 1 then
- set the locH of sprite getAt(ppl, 1) to the locH of sprite getAt(ppl, 1) - 17
- else
- set the locH of sprite getAt(ppl, 1) to the locH of sprite getAt(ppl, 1) + 17
- end if
- setAt(mnv, 1, getAt(mnv, 1) - 1)
- else
- if getAt(mnv, 1) < 20 then
- set the memberNum of sprite getAt(ppl, 1) to member(the memberNum of sprite getAt(ppl, 1) + 1, 2)
- setAt(mnv, 1, getAt(mnv, 1) - 1)
- else
- set the member of sprite getAt(ppl, 1) to member(1, 2)
- setAt(mnv, 1, 1)
- end if
- end if
- end if
- else
- if the memberNum of sprite getAt(ppl, 1) < 82 then
- set the member of sprite getAt(ppl, 1) to member(1, 2)
- end if
- end if
- if sprite 5 within getAt(ppl, 1) and (sprite(5).visible = 1) then
- sprite(5).visible = 0
- bullets = bullets + 1
- sound playFile 1, fxpath & "bullets.aif"
- end if
- if advance < 12 then
- foemov(43, 44, 60, 65, 66, 13, 7, 2, 2, 1, 12, 4)
- foemov(162, 163, 175, 180, 181, 16, 7, 3, 3, 2, 11, 6)
- foemov(162, 163, 175, 180, 181, 8, 3, 4, 4, 3, 11, 6)
- strata2(3)
- else
- strata2(3)
- end if
- throweron(15, 5)
- throweron(16, 6)
- end
-